package oo

import (
	"elegantGo/chapter02-2/pkg/validate"
)

type Password struct {
	String
}

func (o *Password) IsValid() bool {
	return validate.Var(o.value, "min=6,max=20") == nil
}
